
package com.abl.core.common.p6spy;

import com.p6spy.engine.common.StatementInformation;
import com.p6spy.engine.logging.LoggingEventListener;

import java.sql.SQLException;

/**
 * 监听事件
 */
public class P6LogListener extends LoggingEventListener {
    private static P6LogListener INSTANCE;

    public static P6LogListener getInstance() {
        if (null == INSTANCE) {
            INSTANCE = new P6LogListener();
        }
        return INSTANCE;
    }

    @Override
    public void onAfterExecuteBatch(StatementInformation statementInformation, long timeElapsedNanos, int[] updateCounts, SQLException e) {
        //忽略批量执行结果
    }

}
